#ifndef HUAQIMOVIE_H
#define HUAQIMOVIE_H

#include <QWidget>
#include <QString>
#include <QTimer>
#include <QLabel>

class HuaqiMovie : public QObject
{
    Q_OBJECT
public:
    explicit HuaqiMovie(QWidget *parent = 0);
    void showOne();
    void start();
    void stop();
    void setLabel(QLabel * label);
    void setFileName(QString filename);
    int  frameCount();

    QStringList getImageList();
signals:
    void frameChanged(int);

public slots:
    void on_timer();

private:

    QTimer  timer;
    QLabel  *renderLabel;
    int     frame_index;
    int     frame_interval;
    int     loop_count;
    QString folder_path;
    QStringList     imageList;
};

#endif // HUAQIMOVIE_H
